package com.ruoyi.common.core.domain.entity;



import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BusinessEntity;

/**
 * APP用户对象 user
 * 
 * @author tomcat
 * @date 2022-03-31
 */
@TableName(value = "app_user")
public class UserInfo extends BusinessEntity implements Serializable
{
	  @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private String userId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;
    @Excel(name = "用户密码")
    private String password;
    @Excel(name = "加密盐值")
    private String salt;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 头像 */
    @Excel(name = "头像")
    private String img;

    /** QQ */
    @Excel(name = "QQ")
    private String qq;

    /** 冻结 */
    @Excel(name = "冻结")
    private String isLock;

    /** 禁言 */
    @Excel(name = "禁言")
    private String isMute;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String loginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setQq(String qq) 
    {
        this.qq = qq;
    }

    public String getQq() 
    {
        return qq;
    }
    public void setIsLock(String isLock) 
    {
        this.isLock = isLock;
    }

    public String getIsLock() 
    {
        return isLock;
    }
    public void setIsMute(String isMute) 
    {
        this.isMute = isMute;
    }

    public String getIsMute() 
    {
        return isMute;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("phone", getPhone())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("img", getImg())
            .append("qq", getQq())
            .append("isLock", getIsLock())
            .append("isMute", getIsMute())
            .append("loginIp", getLoginIp())
            .append("loginDate", getLoginDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
